<template>
	<view class="content">
		<view class="title">Hi~，有什么可以帮您！</view>
		<image src="../../static/image/helpTips.png" class="helpTips" mode=""></image>
		<view class="conBox">
			<image src="../../static/image/help-box.png" class="helpBox" mode=""></image>
			<view class="box">
				<view class="top">
					<view class="sub-title">常见问题</view>
					<image src="../../static/image/kuai.png" class="kuai" mode=""></image>
				</view>
				<view class="bottom">
					<u-collapse accordion>
						<u-collapse-item :title="item.title" v-for="(item, index) in itemList" :key="index" :index="index">
							<u-parse :html="item.content"></u-parse>
						</u-collapse-item>
					</u-collapse>
				</view>
			</view>
		</view>	
		
	</view>
</template>

<script>
	import {helpCenterList} from '../../common/api.js'
	export default {
		data() {
			return {
				itemList: [],
			}
		},
		onLoad() {
			this.getList()
		},
		methods: {
			getList(){
				helpCenterList({}).then(res=>{
					if(res.code==10000){
						this.itemList = res.data.list
					}
				})
			}
		}
	}
</script>

<style scoped lang="scss">
.content{
	width: 750rpx;
	height: 100vh;
	padding: 32rpx;
	box-sizing: border-box;
	position: relative;
	.title{
		font-family: DINAlternate, DINAlternate;
		font-weight: bold;
		font-size: 40rpx;
		color: #333333;
		line-height: 38rpx;
		text-align: left;
		font-style: normal;
		margin-top: 54rpx;
	}
	.helpTips{
		width: 269rpx;
		height: 189rpx;
		position: absolute;
		right: 20rpx;
		top:0;
	}
	.conBox{
		width: 100%;
		height: calc(100%  - 200rpx);
		margin-top: 69rpx;
		position: relative;
		.helpBox{
			width: 100%;
			height: 100%;
			
		}
		.box{
			width: 100%;
			height: 100%;
			position: absolute;
			left:0;
			top:0;
			// padding: 28rpx 37rpx;
			// box-sizing: border-box;
			.top{
				display: flex;
				justify-content: space-between;
				align-items: center;
				height: 90rpx;
				padding: 0 37rpx;
				.sub-title{
					font-family: PingFangSC, PingFang SC;
					font-weight: 600;
					font-size: 34rpx;
					color: #FFFFFF;
					line-height: 90rpx;
					text-align: center;
					font-style: normal;
				}
				.kuai{
					width: 83rpx;
					height: 39rpx;
				}
			}
		
			.bottom{
				width: 100%;
				padding: 32rpx;
			}
		}
	}
	
}
</style>
